<template>
  <div>
    <div class="input">
      <div class="btn1">
        人员搜素：
        <el-input placeholder="请输入..." v-model="input" clearable style="width:200px;" class="inp"></el-input>
      </div>

      <div class="btn2" v-show="isShow">
        角色：
        <el-input placeholder="请输入..." v-model="input1" clearable style="width:200px"></el-input>
      </div>
      <el-button type="primary" icon="el-icon-search" style="margin-left:10px;background:#5f84ff" @click="serveFn">查询</el-button>
    </div>
  </div>
</template>

<script>

export default {
  name: 'DikedIndex',
  props: {
    isShow: {
      type: Boolean,
      default: false
    },
    list: {
      type: Array,
      default: () => []
    }
  },

  data () {
    return {
      input: '',
      input1: ''

    }
  },

  methods: {
    serveFn () {
      this.$emit('serve', this.input, this.input1)
    }

  }
}
</script>

<style lang="less" scoped>
.input {
  width: 100%;
  height: 70px;
  text-align-last: left;
  line-height: 70px;
  padding-left: 20px;
  background-color: #fff;
  .btn1 {
    float: left;
  }
  .btn2 {
    margin-left: 15px;
    float: left;

  }
}
</style>
